package com.talkweb.newproject.api.model.common;

import lombok.extern.slf4j.Slf4j;

/**
 * Created by qsf on 2019/4/3.
 */
@Slf4j
public class GetResponseResult {

    public static ResponseResult result() {
        ResponseResult result = new ResponseResult();
        result.setStatus(Status.HYSTRIX_FAILD);
        result.setMessage("调用接口失败");
        log.info("调用接口失败");
        return result;
    }

    public static Response getResponse(String msg) {
        Response response = new Response();
        response.setStatus(Status.SUCCESS);
        response.setMessage(msg);
        log.error(msg);
        return response;
    }
}
